﻿using System;
using NguyenHoa.Domains;
using NguyenHoa.Services;
using NguyenHoa.Web.App_Code;

namespace NguyenHoa.Web.Controls
{
  public partial class Footer : BaseControl
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      if (!Page.IsPostBack && !Page.IsCallback)
      {
        TList<ContactInfo> contactInfos = new ContactInfoService().GetByTypeAndLanguage(ContactType.CompanyAddress, null, true);
        if (contactInfos.Count > 0)
        {
          ltrCompanyAddress.Text = contactInfos[0].Value;
        }
      }
    }
  }
}